<div ng-include="'html/component/nav.html'" ng-controller="NavCtrl"></div>
<div class="cashier_wrap">
    <div class="main_left">
        <div class="infor_box about_order">
            <p class="p_wrap p_wrap_top">
                <span class="item_name"><!--本单金额-->{{language.TIPS_CASHIER_CURR_MONEY}}：</span>
                <span class="cont">{{checkNum|currency_foreign}}<span class="money" id="txt_info_money">{{goods_cart.info.need_money|number:2}}</span><!--元-->{{language.TIPS_CASHIER_YUAN}}</span>
            </p>
            <p class="p_wrap p_wrap_bottom" style="padding-top:4%;margin-top:0%;"><!--modify  by liuwei 2017 05 11-->
                <span class="unit"> <span class="item_name"><!--本单数量-->{{language.TIPS_CASHIER_CURR_NUM}}：</span> <span class="cont">{{goods_cart.info.total_num}}</span> </span>
                <span class="unit"> <span class="item_name"><!--本单优惠-->{{language.TIPS_CASHIER_CURR_CUT}}：</span> <span class="cont">{{goods_cart.info.discount_money|number:2}}</span> </span>
            </p>
        </div>
        <div class="infor_box about_member" ng-swipe-left="tabs('next')" ng-swipe-right="tabs('last')">
            <i class="birthday_icon" ng-show="goods_cart.birthday"></i>
            <ul class="member_ul">
                <li class="member_ul_li" ng-show="member_li.current == 0">
                    <p class="p_wrap p_wrap_top">
                        <span class="unit"> <span class="item_name"><!--会员-->{{language.TIPS_VIP}}：</span> <span class="cont" id="txt_vip_name">{{goods_cart.vip.customer_name}}</span> </span>
                        <span class="unit"> <span class="item_name"><!--积分-->{{language.TIPS_INTEGRAL}}：</span> <span class="cont" id="txt_vip_point">{{goods_cart.vip.customer_integral}}</span> </span>
                    </p>
                    <p class="p_wrap p_wrap_bottom" style="padding-top:4%;margin-top:0%;"><!--modify  by liuwei 2017 05 11-->
                        <span class="unit" ng-show="rebate_open" > <span class="item_name"><!--折扣-->{{language.TIPS_CASHIER_DISCOUNT}}：</span> <span class="cont" id="txt_vip_rebate">{{goods_cart.vip.rebate|number:2}}</span> </span>
                        <span class="unit"> <span class="item_name"><!--等级-->{{language.TIPS_LEVEL}}：</span> <span class="cont" id="txt_vip_lvl">{{goods_cart.vip.level_name}}</span> </span>
                    </p>
                </li>
                <li class="member_ul_li" ng-show="member_li.current == 1">
                    <p class="p_wrap p_wrap_top">
                        <span class="unit" > <span class="item_name"><!--备注-->{{language.TIPS_ALL_REMARK}}：</span> <span class="cont" id="txt_vip_lvl">{{goods_cart.allremark}}</span> </span>
                    </p>
                </li>
            </ul>
            <p class="index_point">
                <span class="point"  ng-class="{true: 'curr', false: ''}[member_li.current == 0]" bs-touchstart="jump(0)"></span><span class="point" ng-class="{true: 'curr', false: ''}[member_li.current == 1]" bs-touchstart="jump(1)"></span>
            </p>
        </div>
        <ul class="shopping_list_head">
            <li>
                <!--商品-->
                {{language.TIPS_CASHIER_GOODS}}
            </li>
            <li>
                <!--标准价-->
                {{language.TIPS_CASHIER_NORMAL_PRICE}}
            </li>
            <li ng-show="sku_price">
                <!--折扣-->
                {{language.TIPS_CASHIER_DISCOUNT}}
            </li>
            <li>
                <!--单价-->
                {{language.TIPS_CASHIER_PRICE}}
            </li>
            <li>
                <!--数量-->
                {{language.TIPS_CASHIER_NUM}}
            </li>
            <li>
                <!--金额-->
                {{language.TIPS_CASHIER_MONEY}}
            </li>
            <li>
                <!--导购-->
                {{language.TIPS_CASHIER_GUIDE}}
            </li>
        </ul>
        <div class="shopping_list_wrap">
            <ul class="shopping_list" id="tb_shop_cart" style="overflow-x:hidden;" >
                <li class="promotion" ng-repeat="g in goods_cart.list track by $index" ng-swipe-right="goods_cart_remove($index);" ng-class="{true: 'check', false: 'uncheck'}[check_switch == $index]">
                    <div class="cell huoh" bs-touchstart="checkToggle($index)" >
                        <p class="title">
                            {{g | language_filter_show:'GoodsName'}}
                        </p>
                        <p class="attr">
                            <span>{{g.SkuCode}}</span><span>{{g| language_filter_show:'SkuPropertName'}}</span>
                        </p>
                    </div>
                    <div class="cell">
                        {{g.SkuPrice|number:2}}
                    </div>
                    <!--<div class="cell"><span  id="{{id==1?'true':''}}" class="goods_rebate" ng-class="{true: 'active', false: 'inactive'}[active_switch == $index]">{{g.SkuPrice|number:2}}</span></div>-->
                    <div class="cell" ng-show="sku_price">
                        <span  id="{{id==1?'true':''}}" bs-touchstart="changeGoodsRebate($index);" class="adaptable" ng-class="{true: 'active', false: ''}[active_switch == $index + 'rebate']">{{g.rebate|number:2}}</span>
                    </div>
                    <div class="cell">
                        <span  id="{{id==1?'true':''}}" bs-touchstart="changeGoodsPrice($index);" class="adaptable" ng-class="{true: 'active', false: ''}[active_switch == $index + 'price']">{{g.BuyPrice|number:2}}</span>
                    </div>
                    <div class="cell">
                        <span  id="{{id==1?'true':''}}" bs-touchstart="changeGoodsNum($index);" class="adaptable" ng-class="{true: 'active', false: ''}[active_switch == $index + 'num']">{{g.num}}</span>
                    </div>
                    <div class="cell">
                        <span  id="{{id==1?'true':''}}" bs-touchstart="changeGoodsMoney($index);" class="adaptable" ng-class="{true: 'active', false: ''}[active_switch == $index + 'money']">{{g.money|number:2}}</span>
                    </div>
                    <div class="cell cell_daogou">
                        <select ng-model="g.daogou" ng-options="li.UserCode as li.UserName for li in memberGuide" ng-change="change_daogou(g.daogou, $index);"></select>
                    </div>
                    <i ng-if="g.is_promotion == 1" class="cu">{{language.TIPS_CASHIER_SP}}</i>
                    <i ng-if="g.flag == 1" class="lack">{{language.TIPS_CASHIER_OOS}}</i>
                    <i ng-if="g.is_jf == 1" class="cu">积分</i>
                    <span class="del_list" bs-touchstart = "delete_goods_cart($index)"></span>
                </li>

                <li ng-show="goods_cart.couponGood.price < 0">
                    <div class="cell">
                        <p class="title">
                            {{goods_cart.couponGood.goods_name}}
                        </p>
                        <p class="attr">
                            <span>{{goods_cart.couponGood.goods_code}}</span>
                        </p>

                    </div>
                    <div class="cell" >{{goods_cart.couponGood.price}}</div>
                    <div class="cell" ng-show="sku_price">
                        {{goods_cart.couponGood.rebate}}
                    </div>
                   <div class="cell">
                        {{goods_cart.couponGood.price}}
                    </div>
                    <div class="cell">{{goods_cart.couponGood.num}}</div>
                    <div class="cell">{{goods_cart.couponGood.price}}</div>
                </li>



                <!--jinhua.gu -->
                <li ng-repeat="g in goods_cart.couponData track by $index" ng-swipe-right="couponData_remove(g.coupon.coupon_id,g.coupon.promo_id,g._promotion);" >
                    <div class="cell">
                        {{g.coupon.coupon_name}}
                    </div>
                    <div class="cell" ng-show="sku_price"></div>
                    <div class="cell">
                        {{g.coupon.rebate}}
                    </div>
                    <div class="cell" ></div>
                    <div class="cell">{{g.coupon.num}}</div>
                    <div class="cell">
                        {{g.detail.money * g.coupon.num|number:2}}
                    </div>
                    <div class="cell"></div>
                </li>



            </ul>
        </div>
        <ul class="put_up" id="bottom_pending">
            <li class="up_order" ng-repeat="r in hold_receipt_data" bs-touchstart="get_receipt($index);">
                <span class="index">{{$index + 1}}</span><span class="up_time">{{r.time.toLocaleTimeString()}}</span>
            </li>
        </ul>
    </div>
    <div class="main_right">
        <div class="search_area">
            <div class="input_wrap" ng-swipe-right="inputClearAll();" ng-swipe-left="inputClearAll();" ng-class="animat">
				<input ng-model="input_keyword" id="inputDesk" class="search_input" type="text" placeholder="{{input_tips[selector]}}" ng-class="animat_p"/>
				<!--<input ng-click="checkstatus" ng-model="input_keyword" id="inputDesk" class="search_input" type="text" placeholder="{{input_tips[selector]}}" ng-class="animat_p"/-->
                <span class="del_btn" bs-touchstart="input_clear();" ng-class=""></span>
            </div>
            <ul class="search_item">
                <li id="s_b_vip" bs-touchstart="change_selector();" ng-class="selector_class"></li>
                <li id="s_b_qrcode" class="qrcode" bs-touchstart="search_coupon();"></li>
                <li id="s_b_keyboard"  bs-touchstart="inputOpen()"></li>
            </ul>
        </div>
        <div class="keyboard_area">
            <div class="keys"  bs-touchstart="btn_number(7,$event);"><span class="val"><span class="position_wrap">7</span></span></div>
            <div class="keys"  bs-touchstart="btn_number(8,$event);"><span class="val"><span class="position_wrap">8</span></span></div>
            <div class="keys"  bs-touchstart="btn_number(9,$event);"><span class="val"><span class="position_wrap">9</span></span></div>
            <div class="keys"  bs-touchstart="btn_number(4,$event);"><span class="val"><span class="position_wrap">4</span></span></div>
            <div class="keys"  bs-touchstart="btn_number(5,$event);"><span class="val"><span class="position_wrap">5</span></span></div>
            <div class="keys"  bs-touchstart="btn_number(6,$event);"><span class="val"><span class="position_wrap">6</span></span></div>
            <div class="keys"  bs-touchstart="btn_number(1,$event);"><span class="val"><span class="position_wrap">1</span></span></div>
            <div class="keys"  bs-touchstart="btn_number(2,$event);"><span class="val"><span class="position_wrap">2</span></span></div>
            <div class="keys"  bs-touchstart="btn_number(3,$event);"><span class="val"><span class="position_wrap">3</span></span></div>
            <div class="keys"  bs-touchstart="btn_number('.',$event);"><span class="val"><span class="position_wrap">.</span></span></div>
            <div class="keys"  bs-touchstart="btn_number(0,$event);"><span class="val"><span class="position_wrap">0</span></span></div>
            <div class="keys"  bs-touchstart="btn_enter();"><span class="val"><span class="position_wrap">&crarr;</span></span></div>
        </div>
        <div class="btns_area">
            <ul class="btns_group">
                <li class="btns" id="btn_huiyuan" bs-touchstart="add_vip();" ng-show="purview['\/CashierIndexCtrl\/add_vip'].show == 1">
                    <span class="val"><!--发卡-->{{language.TIPS_CASHIER_ADD_VIP}}</span>
                    <span class="shortcuts" ng-show="{{is_pc}}">(Ctrl+F)</span>
                </li>
                <li class="btns" id="btn_return" bs-touchstart="return_receipt();" ng-show = "purview['\/CashierReturnCtrl\/return_receipt'].show == 1">
                    <span class="val"><!--退换货-->{{language.TIPS_CASHIER_RETURN_GOODS}}</span>
                    <span class="shortcuts" ng-show="{{is_pc}}">(Ctrl+T)</span>
                </li>
                <li class="btns" id="btn_huiyuan" bs-touchstart="sales_prom();" ng-show="purview['\/promotion'].show == 1">
                    <span class="val"><!--促销-->{{language.TIPS_PROMOTION}}</span>
                    <span class="shortcuts" ng-show="{{is_pc}}">(F11)</span>
                </li>
                <li class="btns" bs-touchstart="endCash();" ng-show="purview['\/CashierIndexCtrl\/end_sale'].show == 1">
                    <span class="val"><!--结束营业-->{{language.TIP_INDEX_FINISHED_COMFIRM}}</span>
                </li>
                <li class="btns" id="btn_huiyuan" bs-touchstart="sleeve_group();" ng-show="purview['\/group'].show == 1 && purview['\/CashierIndexCtrl\/end_sale'].show != 1">
                    <span class="val"><!--套餐-->{{language.TIPS_CASHIER_PACKAGE}}</span>
                    <span class="shortcuts" ng-show="{{is_pc}}"></span>
                </li>
                <li class="btns" id="btn_cancel_trade" bs-touchstart="goods_cart_clear();" ng-show="purview['\/cancel'].show == 1">
                    <span class="val"><!--取消-->{{language.ACT_CANCEL}}</span>
                    <span class="shortcuts" ng-show="{{is_pc}}">(Esc)</span>
                </li>
                <li class="btns more" id="btn_more" bs-touchstart="more_btns_toggle()">
                    <span class="val"></span>
                </li>
                <li class="btns jiesuan" bs-touchstart="go_settle();">
                    <span class="value"><span class="position_wrap"><!--收银-->{{language.TIPS_CASHIER}}</span></span>
                    <span class="shortcuts" ng-show="{{is_pc}}">(F8)</span>
                </li>
            </ul>
        </div>
        <div class="more_btns_area" ng-class="more_btns_active" ng-swipe-right="more_btns_toggle()">
            <div class="btns_area">
                <ul class="btns_group">
                    <li class="btns" id="btn_pending" bs-touchstart="hold_receipt();" ng-show="purview['\/CashierIndexCtrl\/hold_receipt'].show == 1">
                        <span class="val"><!--挂单-->{{language.TIPS_CASHIER_HOLD}}</span>
                        <span class="shortcuts" ng-show="{{is_pc}}">(Ctrl+P)</span>
                    </li>
                    <li class="btns" id="btn_moling" bs-touchstart="cut_money();" ng-show="purview['\/CashierIndexCtrl\/cut_money'].show == 1">
                        <span class="val"><!--抹零-->{{language.TIPS_CASHIER_CUT}}</span>
                        <span class="shortcuts" ng-show="{{is_pc}}">(Ctrl+M)</span>
                    </li>
                    <li class="btns" id="btn_dingdan" bs-touchstart="referInventory();" ng-show="purview['\/CashierIndexCtrl\/referInventory'].show == 1">
                        <span class="val"><!--查库存-->{{language.TIPS_CASHIER_SEARCH_INV}}</span>
                        <span class="shortcuts" ng-show="{{is_pc}}">(F2)</span>
                    </li>
                    <!--<li class="btns" bs-touchstart="todo();"><span class="val">储值</span></li>-->
                    <li class="btns" bs-touchstart="card_loss();" ng-show="purview['\/CashierIndexCtrl\/call_lost'].show == 1">
                        <span class="val"><!--挂失-->{{language.TIPS_CASHIER_LOST_REG}}</span>
                    </li>
                    <li class="btns" bs-touchstart="todo();" ng-show="purview['\/CashierIndexCtrl\/service'].show == 1">
                        <span class="val"><!--服务-->{{language.TIPS_CASHIER_SERVICE}}</span>
                    </li>

                    <li class="btns" bs-touchstart="lack_register();" ng-show="!is_lqx">
                        <span class="val"><!--缺货-->{{language.TIPS_CASHIER_OUT_OF_INV_REG}}</span>
                    </li>
                    <li class="btns" bs-touchstart="Wildcard();" ng-show="purview['\/CashierIndexCtrl\/out_vip'].show == 1">
                        <span class="val"><!--外卡-->{{language.TIPS_CASHIER_WILDERCARDS}}</span>
                    </li>
                    <li class="btns" bs-touchstart="add_customer();" ng-show="purview['\/CashierIndexCtrl\/add_cutsomer'].show == 1">
                        <span class="val" ><!--新建顾客-->{{language.TIPS_ADD_CUSTOMER}}</span>
                    </li>
                    <li class="btns" ng-click="no_ticket_return();" ng-show="purview['\/CashierReturnCtrl\/Without_receipt'].show == 1">
                        <span class="val"><!--无票退货-->{{language.TIPS_SETTING_RETURN_WITHOUT_RECEIPT}}</span>
                        <span class="shortcuts" ng-show="{{is_pc}}">(Ctrl+H)</span>
                    </li>
                    <!--<li class="btns" bs-touchstart="remark_html();" ng-show="purview['\/cashier\/all_cashier_remark'].show == 1">
                        <span class="val" >整单备注{{language.TIPS_ALL_REMARK}}</span>
                    </li>-->
                    <li class="btns" bs-touchstart="offline_vip();" ng-show="purview['\/CashierIndexCtrl\/offline_VIP'].show == 1">
                        <span class="val"><!--离线会员-->{{language.TIPS_ALL_OFFLINE_VIP}}</span>
                    </li>
					<!--li class="btns" bs-touchstart="integral_changed();">
                        <span class="val"><!--积分兑换--><!--{{language.TIPS_INTEGRAL_CHANGED}}</span>
                    </li-->
					<li class="btns" bs-touchstart="feifan_coupon_used();">
                        <span class="val"><!--飞凡券核销-->{{language.TIPS_FEIFAN_COUPON_USED}}</span>
                    </li>
                    <li class="btns" id="btn_huiyuan" bs-touchstart="sleeve_group();" ng-show="purview['\/group'].show == 1 && purview['\/CashierIndexCtrl\/end_sale'].show == 1">
                        <span class="val"><!--套餐-->{{language.TIPS_CASHIER_PACKAGE}}</span>
                        <span class="shortcuts" ng-show="{{is_pc}}"></span>
                    </li>
                    <li class="btns" bs-touchstart="maintenance();" ng-show="{{purview['\/CashierIndexCtrl\/fix'].show}}">
                        <span class="val"><!--维修业务-->{{language.TIP_MAINTENANCE}}</span>
                    </li>
                    <li class="btns" bs-touchstart="receiptGuide();" ng-show="{{purview['\/CashierIndexCtrl\/receipt_guide'].show}}">
                        <span class="val"><!--整单改导购-->{{language.TIPS_RECEIPT_GUIDE}}</span>
                    </li>
                    <li class="btns" bs-touchstart="open_money_box();" ng-show="purview['\/CashierIndexCtrl\/open_money_box'].show == 1">
                        <span class="val"><!--打开钱箱-->{{language.TIPS_MONEY_BOX}}</span>
                        <span class="shortcuts" ng-show="{{is_pc}}">(Ctrl+O)</span>
                    </li>
                    <li class="btns" bs-touchstart="change_specifications();" ng-show="purview['\/CashierIndexCtrl\/change_specifications'].show == 1">
                        <span class="val"><!-- 改规格 -->{{language.TIPS_CHANGE_SPECIFICATIONS}}</span>
                    </li>
                    <li class="btns" bs-touchstart="open_customer_screen();" >
                        <span class="val"><!-- 双屏显示 -->双屏显示</span>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div class="shade" ng-show="!goods_cart.is_ready_take"></div>
    <bs-num-keyboard></bs-num-keyboard>
</div>
